<?php

App::uses('CompositeKeyModel', 'Model');


/**
 * OrganisationSubscription Model
 *
 * @property Organisation $Organisation
 * @property SubscriptionType $SubscriptionType
 */
class OrganisationSubscription extends CompositeKeyModel {
    //The Associations below have been created with all possible keys, those that are not needed can be removed

    public $useDbConfig = "organisations";
    public $primaryKeys = array('id', 'organisation_id');
    
    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'Organisation' => array(
            'className' => 'Organisation',
            'foreignKey' => 'organisation_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'SubscriptionType' => array(
            'className' => 'SubscriptionType',
            'foreignKey' => 'subscription_type_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

}
